<div id="CustomerMainBodyVisit">
  <yu-panel title="营销活动报表-新型农业">
    <yu-xform label-width="110px" ref="CustomerMainBodyVisitInfoSearch" related-table-name="CustomerMainBodyVisitTable" form-type="search"
              :custom-search-fn="searchFn">
      <yu-xform-group :column="3">
        <yu-xform-item label="商户名称" placeholder="商户名称" name="merchantName" ctype="input"></yu-xform-item>
        <yu-xform-item label="开始日期" placeholder="开始日期" ctype="datepicker" name="startTime"></yu-xform-item>
        <yu-xform-item label="结束日期" placeholder="结束日期" ctype="datepicker" name="endTime"></yu-xform-item>
      </yu-xform-group>
    </yu-xform>
    <div style="justify-content:space-between;display: flex">
      <div>
        <yu-button type="warning" v-loading="loading"  @click="exportExcel()" >导出数据</yu-button>
      </div>
    </div>
    <div style="height: 30px"></div>
    <yu-xtable ref="CustomerMainBodyVisitTable" :base-params="CustomerMainBodyVisitData" :data-url="funcDataUrl" request-type="get" row-number style="width: 100%">
      <yu-xtable-column prop="merchantName" label="商户名称" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="socialCreditCode" label="统一社会信用代码" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="merchantNo" label="客户编号" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="contactPhone" label="电话号码" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="address" label="地址" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="visitStatus" label="走访状态" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="visitDate" label="拜访日期" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="visitStartTime" label="开始时间" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="visitEndTime" label="结束时间" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="province" label="省" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="city" label="市" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="visitContent" label="走访内容" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="custName" label="客户姓名" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="contactAddress" label="通讯地址" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="mailAddress" label="邮箱地址" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="legalPerson" label="法人姓名" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="cardNo" label="身份证号" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="sex" label="性别" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="contactWay" label="联系方式" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="certificationAuthority" label="认证部门" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="contributionsNum" label="出资人数" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="registeredCapital" label="注册资本" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="registeredAddress" label="注册地址" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="registeredNo" label="注册认定号" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="registeredDate" label="认证日期" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="workerNum" label="家庭劳动人数" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="perennialWorkerNum" label="常年雇工人数" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="trademark" label="注册商标" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="trademarkNo" label="商标号" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="financingChannel" label="前三位的融资渠道" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="mortgageAssets" label="主要可抵押资产" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="loanDemand" label="预计未来三个月内贷款需求" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="difficultiesCountermeasures" label="金融服务遇到的困难与对策" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="businessCategory" label="经营类别" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="businessProducts" label="主要经营产品" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="businessOwner" label="经营场地所有权 0自由 1租赁 2其他" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="cultivatedArea" label="经营耕地面积" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="totalRevenue" label="年经营总收入" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="totalProfit" label="年经营纯利润" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="taxNo" label="税登记证号" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="accountOpening" label="账户开立情况" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="bankDeposit" label="开户行" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="bankCharge" label="主办行（社）负责人" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="residentAccountManager" label="驻点客户经理" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="userId" label="用户号" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="orgId" label="机构号" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="agriculturalSubjectType" label="农业经营主体种类 0龙头企业 1农业合作合作社 2家庭农场 3种养殖大户" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="actFile" label="文件地址" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>

    </yu-xtable>
  </yu-panel>
</div>
